package com.wyl.wyl.testapplication;

import com.wyl.wyl.testapplication.bean.CarMainBean;
import com.wyl.wyl.testapplication.bean.CheckVersionBean;
import com.wyl.wyl.testapplication.bean.PermissonResponseBean;
import com.wyl.wyl.testapplication.bean.PersonMainBean;
import com.wyl.wyl.testapplication.bean.Pingbean;
import com.wyl.wyl.testapplication.bean.RequestBean;
import com.wyl.wyl.testapplication.constant.UrlConstant;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * 接口
 * @author 王月玲
 * @time 2019.4.23
 */

public interface Api {
    //CAR主要内容
    @POST(UrlConstant.URL_Person)
    Call<CarMainBean> getWhList();
    @POST(UrlConstant.URL_Car)
    Call<PersonMainBean>getPersonMain(@Body RequestBean bean);
    @GET(UrlConstant.DEFAULT_PATH + UrlConstant.URL_PING)
    Call<Pingbean> pingUrl(/*@Path("domain") String domain , @Path  ("port") String port*/ );
    @GET(UrlConstant.DEFAULT_PATH + UrlConstant.URL_CHECK_VERSION)
    Call<CheckVersionBean> checkVersion(@Query("versionCode") String versionCode , @Query  ("deviceType") String deviceType );
    @POST(UrlConstant.DEFAULT_PATH + UrlConstant.URL_GET_PERMISSION)
    Call<PermissonResponseBean> getPermission(@Body RequestBean bean);

}